55
Example A:
Constructor, Destructor
Rectangle: Click to edit Master text styles
Second level
Third level
Fourth level
Fifth level
Computer::Computer()
{ //Constructors can accept arguments, but this one does not
processorspeed = 0; //Initializes it to zero
}
Computer::~Computer()
{ //Destructors do not accept arguments
} //The destructor does not need to do anything.